aboutsummaryrefslogtreecommitdiff
path: root/examples/05_command_framework/src
diff options
context:
space:
mode:
authorZeyla Hellyer <[email protected]>2017-06-01 21:15:32 -0700
committerZeyla Hellyer <[email protected]>2017-06-01 21:15:32 -0700
commit6579b1fb0409410f303a4df5e7246c507a80f27b (patch)
tree1f29ba75cac5f5e9527a759889d2308b893274d2 /examples/05_command_framework/src
parentFix ratelimiting::ROUTES doctest (diff)
downloadserenity-6579b1fb0409410f303a4df5e7246c507a80f27b.tar.xz
serenity-6579b1fb0409410f303a4df5e7246c507a80f27b.zip
Deprecate *User::distinct, add *User::tag
`distinct`, although accurate, is an odd name for the method. Deprecate `distinct` on `CurrentUser` and `User` and rename them to `tag`. Additionally, optimize the creation of the resultant String by about 2x. Instead of using the `format!` macro, create a new String with a capacity of 37 and push the username, `'#'`, and write the discriminator in manually.
Diffstat (limited to 'examples/05_command_framework/src')
0 files changed, 0 insertions, 0 deletions