Skip to content

Commit

Permalink
context: rename inheritContextOpts
Browse files Browse the repository at this point in the history
  • Loading branch information
nentenpizza committed Oct 11, 2024
1 parent 6974c37 commit 4ad7ab3
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions context.go
Original file line number Diff line number Diff line change
Expand Up @@ -424,12 +424,12 @@ func (c *nativeContext) Args() []string {
}

func (c *nativeContext) Send(what interface{}, opts ...interface{}) error {
c.inheritContextOpts(opts)
c.inheritOpts(opts)
_, err := c.b.Send(c.Recipient(), what, opts...)
return err
}

func (c *nativeContext) inheritContextOpts(opts ...interface{}) {
func (c *nativeContext) inheritOpts(opts ...interface{}) {
var (
ignoreThread bool
)
Expand Down Expand Up @@ -461,7 +461,7 @@ func (c *nativeContext) Reply(what interface{}, opts ...interface{}) error {
if msg == nil {
return ErrBadContext
}
c.inheritContextOpts(opts)
c.inheritOpts(opts)
_, err := c.b.Reply(msg, what, opts...)
return err
}
Expand All @@ -481,7 +481,7 @@ func (c *nativeContext) ForwardTo(to Recipient, opts ...interface{}) error {
}

func (c *nativeContext) Edit(what interface{}, opts ...interface{}) error {
c.inheritContextOpts(opts)
c.inheritOpts(opts)

if c.u.InlineResult != nil {
_, err := c.b.Edit(c.u.InlineResult, what, opts...)
Expand All @@ -495,7 +495,7 @@ func (c *nativeContext) Edit(what interface{}, opts ...interface{}) error {
}

func (c *nativeContext) EditCaption(caption string, opts ...interface{}) error {
c.inheritContextOpts(opts)
c.inheritOpts(opts)

if c.u.InlineResult != nil {
_, err := c.b.EditCaption(c.u.InlineResult, caption, opts...)
Expand Down

0 comments on commit 4ad7ab3

Please sign in to comment.