diff options
| author | 2020-04-06 17:32:57 +0200 | |
|---|---|---|
| committer | 2020-04-06 17:32:57 +0200 | |
| commit | ae49def47a2f956b93c814993b8f380b5182c6b7 (patch) | |
| tree | 157dd171df0898d5438e46c5ed1dd76d2569e98a /tests | |
| parent | Add channel status emoji to help channels (diff) | |
Change bottom sorting strategy to using a large int
The current approach of trying to find the maximum channel position, adding one, and using that as the position integer for channels does not seem to work reliably. An approach that seems to work in the testing environment is using a very large integer for the position attribute of the channel: It wil be sorted at the bottom and Discord will automatically scale the integer down to `max + 1`.
This also means the `get_position` utility function is no longer needed; it has been removed.
Diffstat (limited to 'tests')
0 files changed, 0 insertions, 0 deletions